package org.lendoo.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lendoo.web.annotation.JsonBoolean2Integer;

import java.math.BigDecimal;
import java.util.Date;
import java.sql.Timestamp;
import java.sql.Blob;
import java.sql.Clob;

/**
 * 用户和地址的关系表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RelUserAddress", description = "用户和地址的关系表")
@TableName("rel_user_address")
public class RelUserAddress {

    @ApiModelProperty(value = "主键", dataType = "Integer")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id", dataType = "Integer")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "地址id", dataType = "Integer")
    @TableField(value = "address_id")
    private Integer addressId;

    @ApiModelProperty(value = "是否是默认地址。1表示是，0表示否", dataType = "Integer")
    @TableField(value = "is_default")
    private Integer isDefault;
}
